package com.m1.tzolkin.model.buildables;

import com.m1.tzolkin.model.ITZStock;
import com.m1.tzolkin.model.TZResource;
import com.m1.tzolkin.model.TZStock;
import com.m1.tzolkin.model.TzolkinConstants;

public enum FarmTypes implements TzolkinConstants {
	
	THREE_FED(3, 0, new TZStock().addResource(TZResource.WOOD, 2)),
	ONE_FED(1, 0, new TZStock().addResource(TZResource.WOOD, 1)),
	ALL_HALF(0, MAX_WORKERS, new TZStock().addResource(TZResource.WOOD, 4));
	
	// ATTRIBUTS
	
	private final int fed;
	private final int halfFed;
	private final ITZStock cost;
	
	// CONSTRUCTEUR
	
	private FarmTypes(int fed, int halfFed, ITZStock cost) {
		this.fed = fed;
		this.halfFed = halfFed;
		this.cost = cost;
	}
	
	// REQUETES
	
	public int fed() {
		return fed;
	}
	
	public int halfFed() {
		return halfFed;
	}
	
	public ITZStock getCost() {
		return cost;
	}
	
}
